package work.zhengyun.demo.model.types;

/**
 * @author zhengyun
 * @date 2019/11/25 13:14
 */
public class CommonType {
    /**
     * 性别
     */
    public final static class Sex {
        /**
         * 女
         */
        public final static int WOMAN = 0;
        /**
         * 男
         */
        public final static int MAN = 1;

        public static boolean checkExists(Integer value) {
            if (null == value) {
                return false;
            }
            if (value.equals(WOMAN) || value.equals(MAN)) {
                return true;
            }
            return false;
        }
    }
}
